package main

import (
	. "net/rpc"
	"log"
	"fmt"
)

func main(){
	client, e := DialHTTP("tcp", "localhost:1234")
	if e!=nil {
		log.Fatal("dialing:",e)
	}
	args:=&Args{7,8}
	var reply int
	e=client.Call("Arith.Multiplay",args,&reply)
	if e!=nil{
		log.Fatal("arith error :",e)
	}
	fmt.Println("Arith: %d*%d=%d",args.A,args.B,reply)
}